//定义详情模块ts类型
export interface ResponseData{
    code:number,
    message:string,
    ok:boolean
}
//代表医院详情的数据
export interface HospitalDetail{
    "bookingRule": {
        "cycle": number,
        "releaseTime": string,
        "stopTime": string,
        "quitDay": number,
        "quitTime": string,
        "rule": string[]
    },
    "hospital": {
        "id": string,
        "createTime": string,
        "updateTime": string,
        "isDeleted": number,
        "param": {
            "hostypeString":string,
            "fullAddress": string
        },
        "hoscode": string,
        "hosname": string,
        "hostype": string,
        "provinceCode":string,
        "cityCode": string
        "districtCode": string,
        "address": string,
        "intro": null,
        logoData:string,
        "route": string,
        "status": number,
        "bookingRule": null
    }
}
//医院详情返回数据ts
export interface HospitalDetail extends ResponseData{
    data:HospitalDetail
}

//定义科室的类型约束
export interface Department{
    "depcode": string,
    "depname": string,
    "children"?:[]
}
//代表存储科室数组类型
export type DepartmentArr= Department[]
//获取科室接口返回的数据类型
export interface DepartmentResponseData extends Department{
    data:DepartmentArr
}
//获取医院科室的数据
export interface BaseMap{
    "workDateString": string,
    "releaseTime": string,
    "bigname": string,
    "stopTime": string,
    "depname": string,
    "hosname": string
}
export interface WorkData{
    "workDate": string,
    "workDateMd": string,
    "dayOfWeek": string,
    "docCount": number,
    "reservedNumber": null,
    "availableNumber": number,
    "status": number
}
export type WorkDataArr = WorkData[]
export interface HospitalWorkData extends ResponseData{
    data:{
        total:number,
        bookingScheduleList:WorkDataArr,
        baseMap:BaseMap
    }
}
//可挂号科室的医生信息
export interface Doctor{
    "id": string,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {
        "dayOfWeek": string,
        "depname": string,
        "hosname": string
    },
    "hoscode": string,
    "depcode": string,
    "title": string,
    "docname": string,
    "skill": string,
    "workDate": string,
    "workTime": number,
    "reservedNumber": number,
    "availableNumber": number,
    "amount": number,
    "status": number,
    "hosScheduleId": string
}
export type DoctorArr =Doctor[]
export interface DoctorResponseDta extends ResponseData{
    data:DoctorArr
}

//一个就诊人数据
export interface  User{
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {
        "certificatesTypeString": string,
        "contactsCertificatesTypeString": string,
        "cityString": null,
        "fullAddress": string,
        "districtString": null,
        "provinceString": null
    },
    "userId": number,
    "name": number,
    "certificatesType": string,
    "certificatesNo": string,
    "sex": number,
    "birthdate": string,
    "phone": string,
    "isMarry": number,
    "provinceCode": null,
    "cityCode": null,
    "districtCode": null,
    "address": string,
    "contactsName": string,
    "contactsCertificatesType": string,
    "contactsCertificatesNo": string,
    "contactsPhone": string,
    "isInsure": number,
    "cardNo": null,
    "status": string
}
export type UserArr = User[]
export interface UserResponseData extends ResponseData{
    data:UserArr
}
//获取某一个挂号医生数据详情
export interface DoctorInfoData extends ResponseData{
    data:Doctor
}

